<!--
 * @Author: Vi卡农
 * @Date: 2020-04-28 10:22:09
 * @LastEditTime: 2020-05-07 15:51:52
 * @Description: --
 * @FilePath: \cshf_admin\src\views\modules\house\page\syslogdetailed.vue
 -->
<template>
  <el-card shadow="never" class="aui-card--fill">
    <div class="mod-sys__syslogdetailed}">
      <el-table
        v-loading="dataListLoading"
        :data="dataList"
        border
        @selection-change="dataListSelectionChangeHandle"
        style="width: 100%;"
      >
        <el-table-column
          prop="operation"
          label="操作名称"
          header-align="center"
          align="center"
          width="180"
        ></el-table-column>
        <el-table-column prop="content" label="操作内容" header-align="center" align="center"></el-table-column>
        <el-table-column
          prop="creatorName"
          label="操作人"
          header-align="center"
          align="center"
          width="100"
        ></el-table-column>
        <el-table-column
          prop="createDate"
          label="操作时间"
          header-align="center"
          align="center"
          width="150"
        ></el-table-column>
      </el-table>
      <el-pagination
        :current-page="page"
        :page-sizes="[10, 20, 50, 100]"
        :page-size="limit"
        :total="total"
        layout="total, sizes, prev, pager, next, jumper"
        @size-change="pageSizeChangeHandle"
        @current-change="pageCurrentChangeHandle"
      ></el-pagination>
    </div>
  </el-card>
</template>

<script>
import mixinViewModule from "@/mixins/view-module";
export default {
  mixins: [mixinViewModule],
  data() {
    return {
      mixinViewModuleOptions: {
        getDataListURL: "/house/houseinfo/logdetailedpage",
        getDataListIsPage: true
      },
      dataForm: {
        moduleId: this.HousingID
      }
    };
  },
  props: ["HousingID"],
  watch: {
    HousingID: {
      handler(newValue, oldValue) {
        this.dataForm.moduleId = newValue;
        this.query();
      }
    }
  }
};
</script>
